package com.example.boot.rtgoods.dao;

import java.util.List;

import com.example.boot.rtgoods.model.RtGoods;
import com.example.boot.rtgoods.vo.GoodsType;

public interface RtGoodsDao {
	int deleteByPrimaryKey(String id) throws Exception;

	int insert(RtGoods record) throws Exception;

	int insertSelective(RtGoods record) throws Exception;

	RtGoods selectByPrimaryKey(String id) throws Exception;

	int updateByPrimaryKeySelective(RtGoods record) throws Exception;

	int updateByPrimaryKey(RtGoods record) throws Exception;

	List<Integer> findByGoodsType(String tableId) throws Exception;

	/**
	 * 根据商店ID查找所有类型
	 * 
	 * @param shopId
	 * @return
	 * @throws Exception
	 */
	List<GoodsType> byShopFindGoodsType(String shopId) throws Exception;

	/**
	 * 根据typeId查找该类型的菜品
	 * 
	 * @param typeId
	 * @return
	 * @throws Exception
	 */
	public List<RtGoods> byTypeIdFindGoods(String typeId) throws Exception;
}